import request from '@/utils/request';
import bodyParse from '@/utils/bodyParse';

//创建提工商提醒
export async function addcompany_bc(params) {
  return request('/wbn-api/company_bc', {
    method: 'POST',
    data: params,
  });
}

//工商提醒list
export async function company_bc(params) {
  return request('/wbn-api/company_bc' + bodyParse(params));
}

//创建报税提醒
export async function addcompany_tax(params) {
  return request('/wbn-api/company_tax', {
    method: 'POST',
    data: params,
  });
}

//创建月收费变更请求
export async function month_charge(params) {
  return request('/wbn-api/month_charge', {
    method: 'POST',
    data: params,
  });
}

//创建月收费变更请求
export async function account_repair(params) {
  return request('/wbn-api/month_charge/account_repair', {
    method: 'PUT',
    data: params,
  });
}

//创建月收费变更请求
export async function chief_refuse(params) {
  return request('/wbn-api/month_charge/chief_refuse', {
    method: 'PUT',
    data: params,
  });
}


//创建月收费变更请求
export async function chief_agree(params) {
  return request('/wbn-api/month_charge/chief_agree', {
    method: 'PUT',
    data: params,
  });
}



//报税list
export async function company_tax(params) {
  return request('/wbn-api/company_tax' + bodyParse(params));
}


//发消息
export async function sendtemplatemessage(params) {
  return request('/wbn-api/company/send_template_message', {
    method: 'POST',
    data: params,
  });
}

//角色列表
export async function customer(params) {
  return request('/wbn-api/customer' + bodyParse(params));
}

//创建角色
export async function addcustomer(params) {
  return request('/wbn-api/customer', {
    method: 'POST',
    data: params,
  });
}

//更新角色
export async function editcustomer(params) {
  return request('/wbn-api/customer/' + params.id, {
    method: 'PUT',
    data: params,
  });
}

//删除角色
export async function deletecustomer(params) {
  return request('/wbn-api/customer/' + params, {
    method: 'DELETE',
  });
}



//创建服务
export async function addonestopservice(params) {
  return request('/wbn-api/one_stop_service', {
    method: 'POST',
    data: params,
  });
}

//更新服务
export async function editonestopservice(params) {
  return request('/wbn-api/one_stop_service/' + params.id, {
    method: 'PUT',
    data: params,
  });
}

//删除服务
export async function deleteonestopservice(params) {
  return request('/wbn-api/one_stop_service/' + params, {
    method: 'DELETE',
  });
}



//创建凭证报送(暂存/提交)
export async function addvoucher(params) {
  return request('/wbn-api/voucher', {
    method: 'POST',
    data: params,
  });
}

//更新凭证报送信息（暂存时编辑/被拒绝)
export async function editvoucher(params) {
  return request('/wbn-api/voucher/' + params.id, {
    method: 'PUT',
    data: params,
  });
}

//删除凭证报送
export async function deletevoucher(params) {
  return request('/wbn-api/voucher/' + params, {
    method: 'DELETE',
  });
}

//拒绝
export async function refusevoucher(params) {
  return request('/wbn-api/voucher/voucher_refuse', {
    method: 'PUT',
    data: params,
  });
}

//拒绝
export async function reviewvoucher(params) {
  return request('/wbn-api/voucher/voucher_review', {
    method: 'PUT',
    data: params,
  });
}

//拒绝
export async function vouchercomplete(params) {
  return request('/wbn-api/voucher/voucher_complete', {
    method: 'PUT',
    data: params,
  });
}